<?php
/**
 * Created by PhpStorm.
 * User: ford
 * Date: 15-6-11
 * Time: 上午10:10
 */
if(isset($_POST['url'])){
	echo file_get_contents("http://".sanitize_string($_POST['url']));

}

function sanitize_string($var){
	$var = strip_tags($var);
	$var = htmlentities($var);

	return stripslashes($var);
}